
<div id="pageInfo" data-title="分类浏览"></div>
<!--分类信息 开始-->

<?php
	
	//获取板块信息
	//echo "session is <br/>";
	//$type   = ISession::get('plate_type');
	//$type = $plate_type[0]['plate_id'];
	//echo "-------------------------------------------------------------".$type;
?>

<link rel="stylesheet" href="{skin:style/mui.css}">
<style>

.viewport{
	background: #EFEFF4;
}

#list {
	/*避免导航边框和列表背景边框重叠，看起来像两条边框似得；*/
	margin-top: -1px;
	color: black;
	
}

a{
	color: black;
}



</style>
<div class="mui-content">
	<div class="mui-card">
				<ul class="mui-table-view">
					{query: name=plate where=is_del eq 0 item=$p}
					<li class="mui-table-view-cell mui-collapse">
						<a class="mui-navigate-right" href="#">{$p['plate_name']}</a>
						<div class="mui-collapse-content">
							<section class="map_list">
								{foreach:items=Api::run('getCategoryListTop') item=$first }
								{if:$p['plate_id'] == $first['plate'] }
								<dl>
									<dt><a href="{url:/site/pro_list/cat/$first[id]}">{$first['name']}</a></dt>
									<dd>
										{foreach:items=Api::run('getCategoryByParentid',array('#parent_id#',$first['id'])) item=$second}
										<a href="{url:/site/pro_list/cat/$second[id]}">{$second['name']}</a>
										{/foreach}
									</dd>
								</dl>
								{else:}
								{set:continue;}
								{/if}
								{/foreach}
							</section>
						</div>
					</li>
					{/query}
				</ul>
			</div>
</div>
<script src="{theme:javascript/mui.js}"></script>
<!-- 
<section class="map_list">
	{foreach:items=Api::run('getCategoryListTop') item=$first }
	{$first['plate']}
	<dl>
		<dt><a href="{url:/site/pro_list/cat/$first[id]}">{$first['name']}</a></dt>
		<dd>
			{foreach:items=Api::run('getCategoryByParentid',array('#parent_id#',$first['id'])) item=$second}
			<a href="{url:/site/pro_list/cat/$second[id]}">{$second['name']}</a>
			{/foreach}
		</dd>
	</dl>
	
	{/foreach}
</section>
 -->
<script>
$(function(){
	$(".nav_map").addClass('on')
})
</script>
